package net.wanho.constant;

import java.util.concurrent.TimeUnit;

public interface UserConstant {

    // 用户状态 0 禁用 1 启用
    String USER_ENABLE = String.valueOf(1);
    String USER_DISABLE = String.valueOf(0);

    // 用户字段
    String USER_ID = "id";
    String USER_CODE = "userCode";

    // 菜单缓存
    String MENU_PREFIX = "user:menu:";

    // 菜单缓存时间
    long MENU_EXPIRE = 1;
    TimeUnit MENU_TIME_UNIT = TimeUnit.HOURS;

    // 删除状态 0 未删除 1 已删除
    String DELETED = String.valueOf(1);
    String NOT_DELETED = String.valueOf(0);

}
